package com.szh.zx.gaoDingJavaBook.yitu.one;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class LocalInner {
	public static void main(String[] args) {
		ArrayList<Integer> integers = new ArrayList<>();
		Collections.addAll(integers,11,22,33,44,55);
		System.out.println(integers);
		Collections.sort(integers, new Comparator<Integer>() {
			@Override
			public int compare(Integer o1, Integer o2) {
				return o2-o1;
			}
		});
		for (Integer integer : integers) {
			System.out.println(integer);
		}
	}

}
class Outer22{
	int a =2;
	int b=7;
	public  void test(int e){
		int c =7;
		class Inner{
			int d=9;
			public void test2(){
				System.out.println(a);
				System.out.println(b);
				System.out.println(c);
				System.out.println(d);
				System.out.println(e);
			}
		}
		new Inner();
	}
}